import { DICT } from "/@/const/dict/index";
export const tableOption = {
  border: true,
  index: false,
  stripe: true,
  searchMenuSpan: 4,
  searchSpan: 4,
  menuWidth: 120,
  delBtn: false,
  editBtn: false,
  addBtn: false,
  menuHeaderAlign: "left",
  menuAlign: "left",
  column: [
    {
      type: "select",
      label: "数据类别",
      prop: "typeCode",
      fixed: true,
      width: 170,
      dicData: DICT.resourceType,
      search: true,
    },
    {
      type: "input",
      label: "数据名称",
      prop: "dataName",
      search: true,
    },
    {
      type: "input",
      label: "所在区域",
      prop: "regionCode",
      maxlength: 12,
      slot:true,
    },
    {
      type: "input",
      label: "数据格式",
      prop: "fileType",
      width: 88,
    },
    {
      type: "select",
      label: "年度",
      prop: "dataTime",
      width: 60,
      dicData: DICT.dataTimeSpan,
      search: true,
    },
    {
      type: "select",
      label: "月份",
      prop: "dataMonth",
      width: 60,
      dicData: DICT.dataMonthSpan,
      search: true,
    },
    {
      type: "input",
      label: "数据大小(KB)",
      prop: "fileSize",
      width: 120,
    },
    {
      type: "datetime",
      label: "上传时间",
      prop: "uploadTime",
      format: "YYYY-MM-DD HH:mm",
      valueFormat: "YYYY-MM-DD HH:mm:ss",
      width: 148,
    },
    {
      type: "input",
      label: "导入状态",
      prop: "statusName",
      width: 166,
      slot:true
    },
  ],
};
